Reduce parallel on mips* as they go OOM
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 8 Dec 2018 09:43:17 +0000 (10:43 +0100)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 8 Dec 2018 09:43:17 +0000 (10:43 +0100)
debian/rules

index f99cfd300892abaf76d4fd908b974f03fcba86fd..8777083156725bd0f901abbc2865d31dab0a0364 100755 (executable)
@@ -13,8 +13,11 @@ CXXFLAGS+=$(CPPFLAGS)
 
 BUILD_DOC = $(if $(shell dh_listpackages | grep libpcl-doc),-DWITH_DOCS=ON)
 
-# Multiarch.
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
+  PARALLEL=--max-parallel=2
+else
+  PARALLEL=
+endif
 
 .PHONY: override_dh_auto_configure \
        override_dh_install \
@@ -89,4 +92,4 @@ override_dh_installchangelogs:
 
 
 %:
-       dh  $@ --builddirectory=build
+       dh  $@ $(PARALLEL) --builddirectory=build